#coding:utf-8
import gc
import time

def clear(msgType,userItem,body):
        userItem.sendMsg(msgType,"ok")
        sendMsg = userItem.conference.sendMsg
        for x in xrange(100):
                sendMsg("")
                time.sleep(0.1)
                
def _gc(msgType,userItem,body):
        userItem.sendMsg(msgType,str(gc.garbage)+str(gc.collect()))

registryCommand(clear,u"чисть",0,u"Тест на беременность",(u"тест",),CMD_ANY)
registryCommand(_gc,u"gc",0,u"Тест на беременность",(u"тест",),CMD_ANY) 
